package com.luguangtao.dao;

import com.luguangtao.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserJpaDao extends JpaRepository<User,Long> {
    //根据用户名查询
    Page<User> findByNameLike(Pageable pageable, String name);
    //根据生日查询
    Page<User> findByBirth(Pageable pageable,String birth);
}
